home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung CD 2 (Tewi)(1994).iso
/
gnu
/
djgpp
/
emu387
/
main.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-28
|
425b
|
38 lines
#include <stdlib.h>
#include <stdio.h>
#ifndef TEST
#define TEST 0
#endif
extern void emu_install();
extern void emu_printall();
#if TEST
double a=10, b=16;
float f=3.3;
int i=3;
void test()
{
asm("fldl _b");
asm("fldl _a");
emu_printall();
asm("fdivr %st,%st(1)");
emu_printall();
}
#endif
main()
{
#if TEST
test();
#endif
emu_install();
#if TEST
test();
#endif
}